package com.lvyh.lightframe.multidatasource.anotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Dynamic switching of multiple data sources
 *
 * @author lvyh 2021/03/20.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RouteDatasource {

    String value() default "master";

}
